package br.com.oxenti.osiga.processo.ui.view;

import br.gov.frameworkdemoiselle.template.AbstractCrudView;
import br.gov.frameworkdemoiselle.ui.CrudForm;

import br.com.oxenti.osiga.processo.domain.Processo;

public class ProcessoView extends AbstractCrudView<Processo> {

	private static final long serialVersionUID = 1L;

	public ProcessoView() {
		super(new CrudForm<Processo>(Processo.class));
	}

	public void init() {
		super.init();
		setCaption("Processo");

		addComponent(getCrudForm());
		addComponent(getListTable());
	}

	public void setDeleteButtonEnabled(boolean enabled) {	
		getCrudForm().getButtonDelete().setEnabled(enabled);
	}

}
